/* -*- mode: c++; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil; -*- */

#ifndef _THREADHELPER_H_
#define _THREADHELPER_H_

#include <boost/bind.hpp>
#include <boost/thread.hpp>

typedef boost::thread           thread_t;

typedef boost::mutex            mutex_t;

typedef boost::condition        cond_t;

/* usage:
 * lock_t::lock(mutex);
 * do_something();
 * lock_t::unlock(mutex);
 */

typedef boost::detail::thread::lock_ops<mutex_t> lock_t;

/* usage:
 * slock_t lock(mutex);
 */

typedef boost::mutex::scoped_lock slock_t;

#endif /* _THREADHELPER_H_ */
